#define _CRT_SECURE_NO_WARNINGS
#include <iostream>

using namespace std;
typedef long long LL;
LL gcd(LL a, LL b)
{
	return b ? gcd(b, a % b) : a;
}
LL lcm(LL a, LL b)
{
	return a * b / gcd(a, b);
}
int main()
{
	LL a, b, c; cin >> a >> b >> c;
	cout << lcm(lcm(a, b), c) << endl;
	return 0;
}